/*
 * @(#)UserDao.java 2020/7/8 11:40 下午
 *
 * Copyright (c) 2010 by rayootech.com. All rights reserved.
 */
package com.nuctech.formlogin.dao;

import com.nuctech.formlogin.model.User;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * 用户数据库操作接口
 *
 * @author lilu
 * @date 2020/7/8 11:40 下午
 * @since 1.0.0
 */
public interface UserDao extends JpaRepository<User, Long> {

	/**
	 * 根据用户名获取用户信息
	 *
	 * @author lilu
	 * @date 2020/7/8 11:51 下午
	 * @since 1.0.0
	 *
	 * @param username
	 * @return com.nuctech.formlogin.model.User
	 */
	User findUserByUsername(String username);

}
